package cn.edu.scau.cmi.yangzemin.comprehension.domain;

import java.util.HashSet;
import java.util.Set;

public class Teacher{
	private Long id;
	private String name;
	private Set<Student> students = new HashSet(0);
	
	public Teacher() {}
	    
	public Long getId(){
		return this.id;
	}
	
	public void setId(Long id) {
		this.id = id;
	} 
	
	public String getName() {   
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Set<Student> getStudents() {
		return this.students;
	}

	public void setStudents(Set<Student> students) {
		this.students = students;
	}
	
	@Override
	public String toString()
	{
		return "教师工号 :" + id + ", 教师姓名 : " + name;
	}
}
